package com.atxiaodei.单向链表;

/**
 * @ClassName Link
 * @Deacription TODO
 * @Author 王盟
 * @Date 2021/6/3 10:38
 * @Version 1.0
 **/
public class Link {
    public int iData;
    public double dData;
    public Link next;

    public Link(int id,double dd) {
        this.iData = id;
        this.dData = dd;
    }

    public void displayLink() {
        System.out.println("{" + this.iData + "," + this.dData + "}");
    }
}
